<script>
    location.href = '/wap/tmpl/member/login.php?ref=' + document.referrer;
</script>